body {	/*整个页面设置背景*/
	background: linear-gradient(to top right, #B3D4FC 0%, white 25%, lightblue 100%);
}

.container {
	/*相册盒子 包含三个box*/
	margin-top: 60px;
	margin-left: 10px;
	display: flex;
	justify-content: space-between;
}

.box1,
/*float、flex、columns布局*/
.box2,
.box3 {
	width: 420px;
	background-color: coral;
}

img {
	width: 130px;
	/*统一图片大小*/
}

nav {
	/*标识布局类型*/
	display: flex;
	justify-content: center;
	color: blueviolet;
	font-size: 19px;
}

/*float 布局*/
.box1 ul {
	margin-left: 10px;
	float: left;
}

/*flex 布局*/
.box2 ul {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-around;
}

/*columns布局*/
.box3 ul {
	columns: auto 3;
}

/*三个box动画*/
@keyframes fade-in {
	0% {
		opacity: 0;
	}

	/*初始状态 透明度为0*/
	40% {
		opacity: 0;
	}

	/*过渡状态 透明度为0*/
	100% {
		opacity: 1;
	}

	/*结束状态 透明度为1*/
}

.box1,
.box2,
.box3 {
	animation: fade-in;
	/*动画名称*/
	animation-duration: 1.5s;
	/*动画持续时间*/
	-webkit-animation: fade-in 1.5s;
	/*针对webkit内核*/
}

/*页脚设置*/
footer {
	display: flex;
	color: white;
	width: 100%;
	height: 30px;
	background-color: black;
	justify-content: center;
}

/*小羊角的相册 标题部分*/
header {
	display: flex;
	overflow: hidden;
	width: 100%;
	font-size: 19px;
	background: #EAFFEA;
	color: #6A5ACD;
	justify-content: center;
	height: 20px;
}

/*动画*/
.a1 {
	-webkit-transform: translate(60px);
	-moz-transform: translate(60px);
	transform: translate(60px);
	-webkit-animation: animations 1s ease-out forwards;
	-moz-animation: animations 1s ease-out forwards;
	animation: animations 1s ease-out forwards;
}

@-webkit-keyframes animations {
	0% {
		-webkit-transform: translate(0);
		opacity: 0;
	}

	50% {
		-webkit-transform: translate(30px);
		opacity: 1;
	}

	70% {
		-webkit-transform: translate(35px);
		opacity: 1;
	}

	100% {
		-webkit-transform: translate(60px);
		opacity: 1;
	}
}

@-moz-keyframes animations {
	0% {
		-moz-transform: translate(0);
		opacity: 0;
	}

	50% {
		-moz-transform: translate(30px);
		opacity: 1;
	}

	70% {
		-moz-transform: translate(35px);
		opacity: 1;
	}

	100% {
		-moz-transform: translate(60px);
		opacity: 1;
	}
}

@keyframes animations {
	0% {
		transform: translate(0);
		opacity: 0;
	}

	50% {
		transform: translate(30px);
		opacity: 1;
	}

	70% {
		transform: translate(35px);
		opacity: 1;
	}

	100% {
		transform: translate(60px);
		opacity: 1;
	}
}

/*导航栏*/
.menu {
	margin-left: 0px;
	height: 30px;
	width: 1370px;
	padding-top: 5px;
	display: flex;
}

.menu li {
	display: flex;
	width: 100px;
	line-height: 30px;
	margin-left: 10px;
	background-image: linear-gradient(green 30%, #0077aa 70%);
	background-position: -100px -50px;
	transition: all 0.5s;
}

.menu li:hover {
	height: 30px;
	background: linear-gradient(green 30%, #0077aa 70%);
	background-position: 0px 0px;
}

.menu li {
	display: flex;
	background-color: black;
	color: white;
	cursor: pointer;
	/*鼠标移动到菜单上会变成小手*/
	transition: all .3s;
	/*动画的过度时间*/
	position: relative;
	/*相对定位（用于二级菜单的定位）*/
}

.menu li ul {
	display: flex;
	position: absolute;
	top: 100%;
	left: 0%;
	width: 100px;
	display: none;
	margin-left: -10px;
	/*二级菜单默认是不可见的*/
}

.menu li ul li {
	width: 100px;
}

.menu li:hover ul {
	display: flex;
	flex-wrap: wrap;
	/*当鼠标放到一级菜单上的li时为li下的ul标签也就是二级菜单附加类，使其能够显示*/
}

/*二级标签动画设置*/
nav>ul li ul li:nth-child(1) {
	animation: animations4 1s linear;
	background: #55A532;
}

nav>ul li ul li:nth-child(2) {
	animation: animations4 2s linear;
	background: #55A532;
}

nav>ul li ul li:nth-child(3) {
	animation: animations4 3s linear;
	background: #55A532;
}

@keyframes animations4 {
	0% {
		transform: scale(0);
		opacity: 0;
	}

	25% {
		transform: scale(1);
		opacity: 0.3;


	}

	50% {
		transform: scale(1);
		opacity: 0.5;
	}

	75% {
		transform: scale(1);
		opacity: 0.7;
	}

	100% {
		transform: scale(1);
		opacity: 1;

	}
}

/*个人简介*/
.container2 {
	/*个人简介一个容器包含了两个内容分别是aside 和 main 用space-between放在两端，控制main的宽度
				让“学习网站”及其内容到达想要的位置*/
	display: flex;
	justify-content: space-between;
	width: 100%;
	height: 100px;
	font-size: 16px;
}

.container2 aside {
	margin-left: 10px;
}

.container2 main {
	width: 400px;
}

.container2 main p {
	margin-bottom: 10px;
}

.container2 main a {
	margin-right: 10px;
}

/*学习网站hover效果*/
.bottom-border {
	transition: all 0.3s;
}

.bottom-border:hover {
	border-bottom: 6px dashed red;
	height: 20px;
}

/*个人简介文字hover效果*/
figure {
	transition: all 0.3s;
}

figure:hover {
	font-size: 19px;
	color: #669900;
}

/*个人简介旁边的图片字*/
@font-face {
	font-family: 'iconfont';
	src: url('iconfont.eot');
	src: url('iconfont.eot?#iefix') format('embedded-opentype'),
		url('iconfont.woff') format('woff'),
		url('iconfont.ttf') format('truetype'),
		url('iconfont.svg#iconfont') format('svg');
}

.iconfont {
	font-family: "iconfont" !important;
	font-size: 16px;
	font-style: normal;
	-webkit-font-smoothing: antialiased;
	-webkit-text-stroke-width: 0.2px;
	-moz-osx-font-smoothing: grayscale;
}

i {
	font-size: 16px !important;
	color: slateblue;
}
